package com.yeung.exam;

import java.util.Scanner;

public class 移动_数字游戏 {

    static int x;
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = -1;
        try {
            num = sc.nextInt();
        } catch (Exception e) {
            System.out.println(0);
            return;
        }
        int tmp[] = new int[100];
        for (int i = 0; i < tmp.length; i++)
            tmp[i] = i + 1;
        int high = tmp.length - 1;
        int count = 0;
        int low = 0;
        while (low <= high) {
            int mid = (low + high) / 2;
            if (tmp[mid] == num) {
                count++;
                break;
            } else if (tmp[mid] < num) {
                count++;
                low = mid + 1;
            } else {
                count++;
                high = mid - 1;
            }
        }
        System.out.println(count);
    }
}
